import { Body, Controller, Inject, Param, Put } from '@nestjs/common';
import { UpdatePermissionControlDto } from './dto/update-permission-control.dto';
import { PermissionControlService } from './permission-control.service';

@Controller('permission-control')
export class PermissionControlController {

  constructor(
    private permissionControlService: PermissionControlService,
  ) {
  }

  @Put(':id')
  update(@Param() id: number, @Body() body: UpdatePermissionControlDto) {
    this.permissionControlService.update(id, body);
  }

}
